SftTree/NET 2.0

ForeColor Property, ItemClass Class

Softel vdm, Inc.

Defines the foreground color of the item's cells.

Syntax      ItemClass Class (Softelvdm.SftTreeNET)

VB   

Public Property ForeColor As Color

C#   

public Color ForeColor { get; set; }

C++   

public: property Color ForeColor {
        Color get();
        void set(Color value);
}

Property Value

The foreground color or Color.Empty.

The default value is Color.Empty.

Comments

The ForeColor property defines the foreground color of the item's cells.

If the foreground color is set to Color.Empty, the following properties are used instead: ColumnClass.ForeColor, ForeColorOdd or ForeColor for items, Headers.ForeColor for column headers, Footers.ForeColor for column footers. Individual cells can define their foreground color using the CellBaseClass.ForeColor property.

If an item is considered selected, the ForeColorSelected property is used to define the foreground color instead.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com